let path = require('path')
function resolve(o) {
    return path.resolve(__dirname, o)
}
module.exports = {
    entry: resolve('src/scripts/main.js'), // 指定入口文件
    output: {
        path: resolve('dist/js'),
        filename: 'main.bundle.js'
    }
}